package main

import "fmt"

type Person struct {
	name string
}

func (tmp *Person) PrintInfo() {
	fmt.Printf("name=%s",tmp.name)
}

type Student struct {
	Person
	addr string
}

func main()  {
	s :=Student{Person{"rowger"},"广东省深圳市"}
	s.PrintInfo()
}